/**
 * 功能描述:
 * 相关配置文件:
 * @author Administrator
 */
package cn.framework.service;

import java.io.Serializable;
import java.util.List;

import cn.framework.dao.BaseHibernateDao;

public interface BaseService{
	public Object save(Object domain);
	public Object update(Object domain);
	public Object saveOrUpdate(Object domain);
	public boolean delete(Object domain);
	public boolean deleteByKey(Serializable id);
	public Object findById(Serializable id);
	public List findAll();
	public List findAll(int firstResult, int size);
	public int getCount();
	
}
